package com.perfma.xtest.request;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class EmptyLineChecker {
    public static void main(String[] args) {
        String filePath = "/Users/sijunhui/Downloads/log/pid文件/29.16.16.243/resources/747179313505382400/FF_WDBD0229.csv"; // 替换为你的文件路径

        try (BufferedReader reader = new BufferedReader(new FileReader(filePath))) {
            String line;
            int lineNumber = 1;

            while ((line = reader.readLine()) != null) {
                if (line.trim().isEmpty()) {
                    System.out.println("Empty line found at line " + lineNumber);
                }
                lineNumber++;
            }
        } catch (IOException e) {
            System.out.println("An error occurred while reading the file: " + e.getMessage());
        }
    }
}